#include "Entity.h"
#include "EntityManager.h"

Entity::Entity()
	: position(0, 0, 0), texture(0), alive(true), ID(-1), name("")
{
	EntityManager::registerEntity(this);
}

Entity::Entity(std::string entityName)
	: position(0, 0, 0), texture(0), alive(true), ID(-1), name(entityName)
{
	EntityManager::registerEntity(this);
}

Entity::Entity(int id)
	: position(0, 0, 0), texture(0), alive(true), ID(id), name("")
{
	EntityManager::registerEntity(this);
}

Entity::Entity(int id, std::string entityName)
	: position(0, 0, 0), texture(0), alive(true), ID(id), name(entityName)
{
	EntityManager::registerEntity(this);
}

Entity::Entity(D3DXVECTOR3 position, IDirect3DTexture9* texture)
	: position(position), texture(texture), alive(true), ID(-1), name("")
{
	EntityManager::registerEntity(this);
}

Entity::Entity(D3DXVECTOR3 position, IDirect3DTexture9* texture, std::string entityName)
	: position(position), texture(texture), alive(true), ID(-1), name(entityName)
{
	EntityManager::registerEntity(this);
}

Entity::Entity(int id, D3DXVECTOR3 position, IDirect3DTexture9* texture)
	: position(position), texture(texture), alive(true), ID(id), name("")
{
	EntityManager::registerEntity(this);
}

Entity::Entity(int id, D3DXVECTOR3 position, IDirect3DTexture9* texture, std::string entityName)
	: position(position), texture(texture), alive(true), ID(id), name(entityName)
{
	EntityManager::registerEntity(this);
}